package com.mida.dms.knw.service;

import com.mida.dms.knw.entity.vo.KnwNoumenonRelationVo;
import com.mida.dms.knw.entity.vo.KnwNoumenonVo;
import com.mida.dms.knw.entity.vo.MapperPage;
import com.mida.dms.knw.vo.KnwNoumenonRelationPageVo;
import com.mida.dms.knw.vo.PageResultVo;
import com.mida.dms.knw.vo.PullDownMenuOfNoumenonVO;
import com.mida.tool.common.result.ActionResult;
import com.mida.tool.common.result.ListResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface KnwNoumenonRelationService {

    ActionResult add(KnwNoumenonRelationVo relation);

    ActionResult updateSingle(@RequestBody KnwNoumenonRelationVo relation);

    ActionResult delete(@RequestParam("soid") Long soid);

    ListResult<List<KnwNoumenonVo>> findSourceAndTarget(MapperPage knwNoumenon);

    ListResult<PageResultVo<KnwNoumenonRelationVo>> findPage(KnwNoumenonRelationPageVo vo);

    ActionResult enable(Long soid);

    ListResult<Object> findRelation(String searchData);
}
